FROM alpine

ENV TZ=Asia/Shanghai

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories

RUN apk --no-cache add tzdata zeromq ca-certificates \
    && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
    && echo '$TZ' > /etc/timezone

RUN mkdir /app
COPY ./config.yaml  /app/config.yaml
COPY ./app.out  /app/app.out

WORKDIR /app

EXPOSE 6666

CMD ["./app.out"]